<form method = "post" action= "moderation.php?page=allComments" class ="pullLeft">
	<span><label for = "sort">Trier Par : </label></span>
	<select name = "sort">
		<option value = "date" <?php if($sortAC == "date"){echo('selected');} ?> >Date</option>
		<option value = "autorID" <?php if($sortAC == "autorID"){echo('selected');} ?> >Auteur</option>
		<option value = "articleID" <?php if($sortAC == "articleID"){echo('selected');} ?> >Article</option>
	</select>
	<select name = "order">
		<option value = "ASC" <?php if($orderAC == "ASC"){echo('selected');} ?> >Croissant</option>
		<option value = "DESC"<?php if($orderAC == "DESC"){echo('selected');} ?> >Décroissant</option>
	</select>
	<button type = "submit" name ="allCommsSortPost" >Ok</button>
</form>
<?php 
	while ($row_com = mysqli_fetch_array($res_allComments))
		{?>
			<div <?= $row_com['statusID'] ?>> </div>
			 <div class="list-article list-commentaire clearfix <?= colorStatus($row_com['statusID']) ?>">
			    <div class="commentaire clearfix">
			        <div class="info pull-left">
			            <div>
			                <h4><?= $row_com["date"] ?></h4>
			            </div>
			            <?= $row_com["content"] ?>
			        </div>
			        <div class="note pull-right">
			            <?= colorNote($row_com['note']) ?>
			        </div>
			    </div>
			    <div class="pull-left">
			        <h4 class="comm-article">Pour <a href="<?= WEBROOT ?>article/article.php?id=<?= $row_com['articleID'] ?>" ><?php if(isset($row_com['title'])) { echo $row_com['title']; } ?></a>  Par <a href="<?= WEBROOT ?>user/user.php?id=<?= $row_com['autorID'] ?>"><?= $row_com['autor'] ?></a></h4>
			    </div>

			</div>
<?php } ?>
